package com.pubinfo.passbook.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pubinfo.passbook.common.entity.TSourceInvoice;
import com.pubinfo.passbook.common.model.bo.witeoff.InvoiceInfo;
import com.pubinfo.passbook.common.model.dto.tax.InvoicePageParamObj;
import com.pubinfo.passbook.common.model.vo.InvoiceList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.pubinfo.passbook.entity.TSourceInvoice
 */
@Repository
public interface TSourceInvoiceMapper extends BaseMapper<TSourceInvoice> {
  Integer deleteAll();
  
  Long findInvoiceCount(@Param("obj") InvoicePageParamObj obj);
  
  List<InvoiceList> selectRepetition();
  
  //IPage<InvoiceList> page,
  List<InvoiceList> listTInvoice(@Param("obj") InvoicePageParamObj obj);
  
  List<InvoiceList> listTInvoiceByDep(@Param("obj") InvoicePageParamObj obj);
  
  boolean insertList(List<TSourceInvoice> list);
  
  String selectCompanyType(@Param("nsrsbh") String nsrsbh);
  
  InvoiceInfo invoiceInfoById(String invoiceId);

  List<TSourceInvoice> selectInvoiceByJgrq(String jgrq);

}




